import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const LIST: AppRouteRecordRaw = {
  path: '/list',
  name: 'list',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.list',
    requiresAuth: true,
    icon: 'icon-list',
    order: 2,
  },
  children: [
    {
      path: 'search-table', // The midline path complies with SEO specifications
      name: 'SearchTable',
      component: () => import('@/views/list/search-table/index.vue'),
      meta: {
        locale: 'menu.list.searchTable',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    // {
    //   path: 'card',
    //   name: 'Card',
    //   component: () => import('@/views/list/card/index.vue'),
    //   meta: {
    //     locale: 'menu.list.cardList',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },

    {
      path: 'assets',
      name: 'assets',
      component: () => import('@/views/futian/assets.vue'),
      meta: {
        locale: '资产列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'assetsDetail',
      name: 'assetsDetail',
      component: () => import('@/views/futian/assetsDetail.vue'),
      meta: {
        locale: '资产管理-详情',
        requiresAuth: true,
        roles: ['*'],
        hideInMenu: true,
      },
    },

    {
      path: 'ComputerRoom',
      name: 'ComputerRoom',
      component: () => import('@/views/futian/ComputerRoom.vue'),
      meta: {
        locale: '配电间列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'wlan',
      name: 'wlan',
      component: () => import('@/views/futian/wlan.vue'),
      meta: {
        locale: '网关列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'typeManage',
      name: 'typeManage',
      component: () => import('@/views/futian/typeManage.vue'),
      meta: {
        locale: '资产类别',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'Manufacturer',
      name: 'Manufacturer',
      component: () => import('@/views/futian/Manufacturer.vue'),
      meta: {
        locale: '厂家维护',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'FactoryArea',
      name: 'FactoryArea',
      component: () => import('@/views/futian/FactoryArea.vue'),
      meta: {
        locale: '厂区维护',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'codeImg',
      name: 'codeImg',
      component: () => import('@/views/futian/codeImg.vue'),
      meta: {
        locale: '资产二维码',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'map',
      name: 'map',
      component: () => import('@/views/futian/map.vue'),
      meta: {
        locale: '资产地图',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default LIST;
